.class public Lcom/zuimeia/ui/lockpattern/LockNumberIndicator;
.super Landroid/view/View;
.source "LockNumberIndicator.java"


# annotations
.annotation system Ldalvik/annotation/MemberClasses;
    value = {
        Lcom/zuimeia/ui/lockpattern/LockNumberIndicator$Indicator;
    }
.end annotation


# static fields
.field private static final DEFAULT_INDICATOR_PADDING:I = 0x1b

.field private static final MAX_RADIUS:I = 0x9

.field private static final MIN_RADIUS:I = 0x4


# instance fields
.field private mDefaultColor:I

.field private mIndicatorPadding:I

.field private mIndicators:Ljava/util/ArrayList;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/ArrayList",
            "<",
            "Lcom/zuimeia/ui/lockpattern/LockNumberIndicator$Indicator;",
            ">;"
        }
    .end annotation
.end field

.field private mMaxRadius:I

.field private mMinRadius:I

.field private mPaint:Landroid/graphics/Paint;

.field private mPatternDrawLookup:[[Z

.field private mPatternFadingOutLookup:[[Z

.field private mSquareHeight:F

.field private mSquareWidth:F


# direct methods
.method public constructor <init>(Landroid/content/Context;)V
    .registers 3
    .param p1, "context"    # Landroid/content/Context;

    .prologue
    .line 114
    const/4 v0, 0x0

    invoke-direct {p0, p1, v0}, Lcom/zuimeia/ui/lockpattern/LockNumberIndicator;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;)V

    .line 115
    return-void
.end method

.method public constructor <init>(Landroid/content/Context;Landroid/util/AttributeSet;)V
    .registers 9
    .param p1, "context"    # Landroid/content/Context;
    .param p2, "attrs"    # Landroid/util/AttributeSet;

    .prologue
    const/16 v5, 0xff

    const/4 v4, 0x4

    const/4 v3, 0x1

    .line 118
    invoke-direct {p0, p1, p2}, Landroid/view/View;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;)V

    .line 21
    new-instance v1, Landroid/graphics/Paint;

    invoke-direct {v1}, Landroid/graphics/Paint;-><init>()V

    iput-object v1, p0, Lcom/zuimeia/ui/lockpattern/LockNumberIndicator;->mPaint:Landroid/graphics/Paint;

    .line 23
    new-instance v1, Ljava/util/ArrayList;

    invoke-direct {v1, v4}, Ljava/util/ArrayList;-><init>(I)V

    iput-object v1, p0, Lcom/zuimeia/ui/lockpattern/LockNumberIndicator;->mIndicators:Ljava/util/ArrayList;

    .line 25
    filled-new-array {v3, v4}, [I

    move-result-object v1

    sget-object v2, Ljava/lang/Boolean;->TYPE:Ljava/lang/Class;

    invoke-static {v2, v1}, Ljava/lang/reflect/Array;->newInstance(Ljava/lang/Class;[I)Ljava/lang/Object;

    move-result-object v1

    check-cast v1, [[Z

    iput-object v1, p0, Lcom/zuimeia/ui/lockpattern/LockNumberIndicator;->mPatternDrawLookup:[[Z

    .line 26
    filled-new-array {v3, v4}, [I

    move-result-object v1

    sget-object v2, Ljava/lang/Boolean;->TYPE:Ljava/lang/Class;

    invoke-static {v2, v1}, Ljava/lang/reflect/Array;->newInstance(Ljava/lang/Class;[I)Ljava/lang/Object;

    move-result-object v1

    check-cast v1, [[Z

    iput-object v1, p0, Lcom/zuimeia/ui/lockpattern/LockNumberIndicator;->mPatternFadingOutLookup:[[Z

    .line 120
    invoke-virtual {p0}, Lcom/zuimeia/ui/lockpattern/LockNumberIndicator;->getResources()Landroid/content/res/Resources;

    move-result-object v1

    invoke-virtual {v1}, Landroid/content/res/Resources;->getDisplayMetrics()Landroid/util/DisplayMetrics;

    move-result-object v0

    .line 121
    .local v0, "metrics":Landroid/util/DisplayMetrics;
    const/high16 v1, 0x41d80000

    invoke-static {v3, v1, v0}, Landroid/util/TypedValue;->applyDimension(IFLandroid/util/DisplayMetrics;)F

    move-result v1

    float-to-int v1, v1

    iput v1, p0, Lcom/zuimeia/ui/lockpattern/LockNumberIndicator;->mIndicatorPadding:I

    .line 122
    const/high16 v1, 0x40800000

    invoke-static {v3, v1, v0}, Landroid/util/TypedValue;->applyDimension(IFLandroid/util/DisplayMetrics;)F

    move-result v1

    float-to-int v1, v1

    iput v1, p0, Lcom/zuimeia/ui/lockpattern/LockNumberIndicator;->mMinRadius:I

    .line 123
    const/high16 v1, 0x41100000

    invoke-static {v3, v1, v0}, Landroid/util/TypedValue;->applyDimension(IFLandroid/util/DisplayMetrics;)F

    move-result v1

    float-to-int v1, v1

    iput v1, p0, Lcom/zuimeia/ui/lockpattern/LockNumberIndicator;->mMaxRadius:I

    .line 125
    const/16 v1, 0x55

    invoke-static {v1, v5, v5, v5}, Landroid/graphics/Color;->argb(IIII)I

    move-result v1

    iput v1, p0, Lcom/zuimeia/ui/lockpattern/LockNumberIndicator;->mDefaultColor:I

    .line 127
    invoke-direct {p0}, Lcom/zuimeia/ui/lockpattern/LockNumberIndicator;->resetIndicators()V

    .line 129
    iget-object v1, p0, Lcom/zuimeia/ui/lockpattern/LockNumberIndicator;->mPaint:Landroid/graphics/Paint;

    invoke-virtual {v1, v3}, Landroid/graphics/Paint;->setAntiAlias(Z)V

    .line 130
    iget-object v1, p0, Lcom/zuimeia/ui/lockpattern/LockNumberIndicator;->mPaint:Landroid/graphics/Paint;

    invoke-virtual {v1, v3}, Landroid/graphics/Paint;->setDither(Z)V

    .line 131
    iget-object v1, p0, Lcom/zuimeia/ui/lockpattern/LockNumberIndicator;->mPaint:Landroid/graphics/Paint;

    sget-object v2, Landroid/graphics/Paint$Style;->FILL:Landroid/graphics/Paint$Style;

    invoke-virtual {v1, v2}, Landroid/graphics/Paint;->setStyle(Landroid/graphics/Paint$Style;)V

    .line 132
    return-void
.end method

.method private animatePopup(Lcom/zuimeia/ui/lockpattern/LockNumberIndicator$Indicator;)V
    .registers 10
    .param p1, "indicator"    # Lcom/zuimeia/ui/lockpattern/LockNumberIndicator$Indicator;

    .prologue
    const/high16 v1, 0x40000000

    .line 200
    iget v0, p1, Lcom/zuimeia/ui/lockpattern/LockNumberIndicator$Indicator;->column:I

    invoke-direct {p0, v0}, Lcom/zuimeia/ui/lockpattern/LockNumberIndicator;->getCenterXForColumn(I)F

    move-result v3

    .line 201
    .local v3, "startX":F
    iget v0, p1, Lcom/zuimeia/ui/lockpattern/LockNumberIndicator$Indicator;->row:I

    invoke-direct {p0, v0}, Lcom/zuimeia/ui/lockpattern/LockNumberIndicator;->getCenterYForRow(I)F

    move-result v5

    .line 203
    .local v5, "startY":F
    iget v0, p0, Lcom/zuimeia/ui/lockpattern/LockNumberIndicator;->mSquareWidth:F

    div-float v4, v0, v1

    .line 204
    .local v4, "widthOffset":F
    iget v0, p0, Lcom/zuimeia/ui/lockpattern/LockNumberIndicator;->mSquareHeight:F

    div-float v6, v0, v1

    .line 206
    .local v6, "heightOffset":F
    const/4 v0, 0x2

    new-array v0, v0, [F

    const/4 v1, 0x0

    iget v2, p0, Lcom/zuimeia/ui/lockpattern/LockNumberIndicator;->mMinRadius:I

    int-to-float v2, v2

    aput v2, v0, v1

    const/4 v1, 0x1

    iget v2, p0, Lcom/zuimeia/ui/lockpattern/LockNumberIndicator;->mMaxRadius:I

    int-to-float v2, v2

    aput v2, v0, v1

    invoke-static {v0}, Landroid/animation/ValueAnimator;->ofFloat([F)Landroid/animation/ValueAnimator;

    move-result-object v7

    .line 207
    .local v7, "radiusAnimator":Landroid/animation/ValueAnimator;
    const-wide/16 v0, 0x12c

    invoke-virtual {v7, v0, v1}, Landroid/animation/ValueAnimator;->setDuration(J)Landroid/animation/ValueAnimator;

    .line 208
    new-instance v0, Landroid/view/animation/OvershootInterpolator;

    const/high16 v1, 0x40e00000

    invoke-direct {v0, v1}, Landroid/view/animation/OvershootInterpolator;-><init>(F)V

    invoke-virtual {v7, v0}, Landroid/animation/ValueAnimator;->setInterpolator(Landroid/animation/TimeInterpolator;)V

    .line 209
    new-instance v0, Lcom/zuimeia/ui/lockpattern/LockNumberIndicator$1;

    invoke-direct {v0, p0, p1}, Lcom/zuimeia/ui/lockpattern/LockNumberIndicator$1;-><init>(Lcom/zuimeia/ui/lockpattern/LockNumberIndicator;Lcom/zuimeia/ui/lockpattern/LockNumberIndicator$Indicator;)V

    invoke-virtual {v7, v0}, Landroid/animation/ValueAnimator;->addListener(Landroid/animation/Animator$AnimatorListener;)V

    .line 215
    new-instance v0, Lcom/zuimeia/ui/lockpattern/LockNumberIndicator$2;

    move-object v1, p0

    move-object v2, p1

    invoke-direct/range {v0 .. v6}, Lcom/zuimeia/ui/lockpattern/LockNumberIndicator$2;-><init>(Lcom/zuimeia/ui/lockpattern/LockNumberIndicator;Lcom/zuimeia/ui/lockpattern/LockNumberIndicator$Indicator;FFFF)V

    invoke-virtual {v7, v0}, Landroid/animation/ValueAnimator;->addUpdateListener(Landroid/animation/ValueAnimator$AnimatorUpdateListener;)V

    .line 224
    iget-object v0, p1, Lcom/zuimeia/ui/lockpattern/LockNumberIndicator$Indicator;->animator:Landroid/animation/Animator;

    if-eqz v0, :cond_5b

    iget-object v0, p1, Lcom/zuimeia/ui/lockpattern/LockNumberIndicator$Indicator;->animator:Landroid/animation/Animator;

    invoke-virtual {v0}, Landroid/animation/Animator;->isRunning()Z

    move-result v0

    if-eqz v0, :cond_5b

    .line 225
    iget-object v0, p1, Lcom/zuimeia/ui/lockpattern/LockNumberIndicator$Indicator;->animator:Landroid/animation/Animator;

    invoke-virtual {v0}, Landroid/animation/Animator;->cancel()V

    .line 228
    :cond_5b
    new-instance v0, Lcom/zuimeia/ui/lockpattern/LockNumberIndicator$3;

    invoke-direct {v0, p0, p1}, Lcom/zuimeia/ui/lockpattern/LockNumberIndicator$3;-><init>(Lcom/zuimeia/ui/lockpattern/LockNumberIndicator;Lcom/zuimeia/ui/lockpattern/LockNumberIndicator$Indicator;)V

    invoke-virtual {v7, v0}, Landroid/animation/ValueAnimator;->addListener(Landroid/animation/Animator$AnimatorListener;)V

    .line 235
    iput-object v7, p1, Lcom/zuimeia/ui/lockpattern/LockNumberIndicator$Indicator;->animator:Landroid/animation/Animator;

    .line 236
    invoke-virtual {v7}, Landroid/animation/ValueAnimator;->start()V

    .line 237
    return-void
.end method

.method private drawCircle(Landroid/graphics/Canvas;IIZII)V
    .registers 12
    .param p1, "canvas"    # Landroid/graphics/Canvas;
    .param p2, "leftX"    # I
    .param p3, "topY"    # I
    .param p4, "partOfPattern"    # Z
    .param p5, "row"    # I
    .param p6, "column"    # I

    .prologue
    .line 323
    invoke-direct {p0, p6}, Lcom/zuimeia/ui/lockpattern/LockNumberIndicator;->getCenterXForColumn(I)F

    move-result v0

    .line 324
    .local v0, "centerX":F
    invoke-direct {p0, p5}, Lcom/zuimeia/ui/lockpattern/LockNumberIndicator;->getCenterYForRow(I)F

    move-result v1

    .line 326
    .local v1, "centerY":F
    invoke-static {p5, p6}, Lcom/zuimeia/ui/lockpattern/LockNumberIndicator$Indicator;->of(II)Lcom/zuimeia/ui/lockpattern/LockNumberIndicator$Indicator;

    move-result-object v2

    .line 327
    .local v2, "indicator":Lcom/zuimeia/ui/lockpattern/LockNumberIndicator$Indicator;
    iget-object v3, p0, Lcom/zuimeia/ui/lockpattern/LockNumberIndicator;->mPaint:Landroid/graphics/Paint;

    iget v4, v2, Lcom/zuimeia/ui/lockpattern/LockNumberIndicator$Indicator;->color:I

    invoke-virtual {v3, v4}, Landroid/graphics/Paint;->setColor(I)V

    .line 331
    if-eqz p4, :cond_1d

    iget v3, v2, Lcom/zuimeia/ui/lockpattern/LockNumberIndicator$Indicator;->radius:F

    :goto_17
    iget-object v4, p0, Lcom/zuimeia/ui/lockpattern/LockNumberIndicator;->mPaint:Landroid/graphics/Paint;

    invoke-virtual {p1, v0, v1, v3, v4}, Landroid/graphics/Canvas;->drawCircle(FFFLandroid/graphics/Paint;)V

    .line 333
    return-void

    .line 331
    :cond_1d
    iget v3, v2, Lcom/zuimeia/ui/lockpattern/LockNumberIndicator$Indicator;->smallRadius:F

    goto :goto_17
.end method

.method private getCenterXForColumn(I)F
    .registers 5
    .param p1, "column"    # I

    .prologue
    .line 287
    invoke-virtual {p0}, Lcom/zuimeia/ui/lockpattern/LockNumberIndicator;->getPaddingLeft()I

    move-result v0

    int-to-float v0, v0

    int-to-float v1, p1

    iget v2, p0, Lcom/zuimeia/ui/lockpattern/LockNumberIndicator;->mSquareWidth:F

    mul-float/2addr v1, v2

    add-float/2addr v0, v1

    iget v1, p0, Lcom/zuimeia/ui/lockpattern/LockNumberIndicator;->mSquareWidth:F

    const/high16 v2, 0x40000000

    div-float/2addr v1, v2

    add-float/2addr v0, v1

    return v0
.end method

.method private getCenterYForRow(I)F
    .registers 5
    .param p1, "row"    # I

    .prologue
    .line 291
    invoke-virtual {p0}, Lcom/zuimeia/ui/lockpattern/LockNumberIndicator;->getPaddingTop()I

    move-result v0

    int-to-float v0, v0

    int-to-float v1, p1

    iget v2, p0, Lcom/zuimeia/ui/lockpattern/LockNumberIndicator;->mSquareHeight:F

    mul-float/2addr v1, v2

    add-float/2addr v0, v1

    iget v1, p0, Lcom/zuimeia/ui/lockpattern/LockNumberIndicator;->mSquareHeight:F

    const/high16 v2, 0x40000000

    div-float/2addr v1, v2

    add-float/2addr v0, v1

    return v0
.end method

.method private getNextIndicator()Lcom/zuimeia/ui/lockpattern/LockNumberIndicator$Indicator;
    .registers 3

    .prologue
    .line 135
    iget-object v0, p0, Lcom/zuimeia/ui/lockpattern/LockNumberIndicator;->mIndicators:Ljava/util/ArrayList;

    invoke-virtual {v0}, Ljava/util/ArrayList;->size()I

    move-result v0

    const/4 v1, 0x4

    if-lt v0, v1, :cond_b

    .line 136
    const/4 v0, 0x0

    .line 139
    :goto_a
    return-object v0

    :cond_b
    const/4 v0, 0x0

    iget-object v1, p0, Lcom/zuimeia/ui/lockpattern/LockNumberIndicator;->mIndicators:Ljava/util/ArrayList;

    invoke-virtual {v1}, Ljava/util/ArrayList;->size()I

    move-result v1

    invoke-static {v0, v1}, Lcom/zuimeia/ui/lockpattern/LockNumberIndicator$Indicator;->of(II)Lcom/zuimeia/ui/lockpattern/LockNumberIndicator$Indicator;

    move-result-object v0

    goto :goto_a
.end method

.method private resetIndicators()V
    .registers 6

    .prologue
    .line 171
    const/4 v0, 0x0

    .local v0, "i":I
    :goto_1
    const/4 v3, 0x1

    if-ge v0, v3, :cond_27

    .line 172
    const/4 v2, 0x0

    .local v2, "j":I
    :goto_5
    const/4 v3, 0x4

    if-ge v2, v3, :cond_24

    .line 173
    invoke-static {v0, v2}, Lcom/zuimeia/ui/lockpattern/LockNumberIndicator$Indicator;->of(II)Lcom/zuimeia/ui/lockpattern/LockNumberIndicator$Indicator;

    move-result-object v1

    .line 174
    .local v1, "indicator":Lcom/zuimeia/ui/lockpattern/LockNumberIndicator$Indicator;
    iget v3, p0, Lcom/zuimeia/ui/lockpattern/LockNumberIndicator;->mMinRadius:I

    int-to-float v3, v3

    iput v3, v1, Lcom/zuimeia/ui/lockpattern/LockNumberIndicator$Indicator;->radius:F

    .line 175
    iget v3, p0, Lcom/zuimeia/ui/lockpattern/LockNumberIndicator;->mMinRadius:I

    int-to-float v3, v3

    iput v3, v1, Lcom/zuimeia/ui/lockpattern/LockNumberIndicator$Indicator;->smallRadius:F

    .line 176
    iget v3, p0, Lcom/zuimeia/ui/lockpattern/LockNumberIndicator;->mDefaultColor:I

    iput v3, v1, Lcom/zuimeia/ui/lockpattern/LockNumberIndicator$Indicator;->color:I

    .line 178
    iget-object v3, p0, Lcom/zuimeia/ui/lockpattern/LockNumberIndicator;->mPatternDrawLookup:[[Z

    aget-object v3, v3, v0

    const/4 v4, 0x0

    aput-boolean v4, v3, v2

    .line 172
    add-int/lit8 v2, v2, 0x1

    goto :goto_5

    .line 171
    .end local v1    # "indicator":Lcom/zuimeia/ui/lockpattern/LockNumberIndicator$Indicator;
    :cond_24
    add-int/lit8 v0, v0, 0x1

    goto :goto_1

    .line 181
    .end local v2    # "j":I
    :cond_27
    return-void
.end method


# virtual methods
.method public addIndicator(I)V
    .registers 6
    .param p1, "color"    # I

    .prologue
    .line 143
    invoke-direct {p0}, Lcom/zuimeia/ui/lockpattern/LockNumberIndicator;->getNextIndicator()Lcom/zuimeia/ui/lockpattern/LockNumberIndicator$Indicator;

    move-result-object v0

    .line 144
    .local v0, "indicator":Lcom/zuimeia/ui/lockpattern/LockNumberIndicator$Indicator;
    if-eqz v0, :cond_2e

    .line 145
    iget-object v1, p0, Lcom/zuimeia/ui/lockpattern/LockNumberIndicator;->mPatternDrawLookup:[[Z

    invoke-virtual {v0}, Lcom/zuimeia/ui/lockpattern/LockNumberIndicator$Indicator;->getRow()I

    move-result v2

    aget-object v1, v1, v2

    invoke-virtual {v0}, Lcom/zuimeia/ui/lockpattern/LockNumberIndicator$Indicator;->getColumn()I

    move-result v2

    const/4 v3, 0x1

    aput-boolean v3, v1, v2

    .line 146
    iget-object v1, p0, Lcom/zuimeia/ui/lockpattern/LockNumberIndicator;->mPatternFadingOutLookup:[[Z

    invoke-virtual {v0}, Lcom/zuimeia/ui/lockpattern/LockNumberIndicator$Indicator;->getRow()I

    move-result v2

    aget-object v1, v1, v2

    invoke-virtual {v0}, Lcom/zuimeia/ui/lockpattern/LockNumberIndicator$Indicator;->getColumn()I

    move-result v2

    const/4 v3, 0x0

    aput-boolean v3, v1, v2

    .line 147
    iput p1, v0, Lcom/zuimeia/ui/lockpattern/LockNumberIndicator$Indicator;->color:I

    .line 148
    iget-object v1, p0, Lcom/zuimeia/ui/lockpattern/LockNumberIndicator;->mIndicators:Ljava/util/ArrayList;

    invoke-virtual {v1, v0}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

    .line 150
    invoke-direct {p0, v0}, Lcom/zuimeia/ui/lockpattern/LockNumberIndicator;->animatePopup(Lcom/zuimeia/ui/lockpattern/LockNumberIndicator$Indicator;)V

    .line 152
    :cond_2e
    return-void
.end method

.method public clearIndicators()V
    .registers 2

    .prologue
    .line 165
    iget-object v0, p0, Lcom/zuimeia/ui/lockpattern/LockNumberIndicator;->mIndicators:Ljava/util/ArrayList;

    invoke-virtual {v0}, Ljava/util/ArrayList;->clear()V

    .line 166
    invoke-direct {p0}, Lcom/zuimeia/ui/lockpattern/LockNumberIndicator;->resetIndicators()V

    .line 167
    invoke-virtual {p0}, Lcom/zuimeia/ui/lockpattern/LockNumberIndicator;->invalidate()V

    .line 168
    return-void
.end method

.method protected onDraw(Landroid/graphics/Canvas;)V
    .registers 16
    .param p1, "canvas"    # Landroid/graphics/Canvas;

    .prologue
    .line 297
    iget-object v7, p0, Lcom/zuimeia/ui/lockpattern/LockNumberIndicator;->mPatternDrawLookup:[[Z

    .line 299
    .local v7, "drawLookup":[[Z
    iget v12, p0, Lcom/zuimeia/ui/lockpattern/LockNumberIndicator;->mSquareWidth:F

    .line 300
    .local v12, "squareWidth":F
    iget v11, p0, Lcom/zuimeia/ui/lockpattern/LockNumberIndicator;->mSquareHeight:F

    .line 303
    .local v11, "squareHeight":F
    invoke-virtual {p0}, Lcom/zuimeia/ui/lockpattern/LockNumberIndicator;->getPaddingTop()I

    move-result v10

    .line 304
    .local v10, "paddingTop":I
    invoke-virtual {p0}, Lcom/zuimeia/ui/lockpattern/LockNumberIndicator;->getPaddingLeft()I

    move-result v9

    .line 306
    .local v9, "paddingLeft":I
    const/4 v5, 0x0

    .local v5, "i":I
    :goto_f
    const/4 v0, 0x1

    if-ge v5, v0, :cond_31

    .line 307
    int-to-float v0, v10

    int-to-float v1, v5

    mul-float/2addr v1, v11

    add-float v13, v0, v1

    .line 308
    .local v13, "topY":F
    const/4 v6, 0x0

    .local v6, "j":I
    :goto_18
    const/4 v0, 0x4

    if-ge v6, v0, :cond_2e

    .line 309
    int-to-float v0, v9

    int-to-float v1, v6

    mul-float/2addr v1, v12

    add-float v8, v0, v1

    .line 310
    .local v8, "leftX":F
    float-to-int v2, v8

    float-to-int v3, v13

    aget-object v0, v7, v5

    aget-boolean v4, v0, v6

    move-object v0, p0

    move-object v1, p1

    invoke-direct/range {v0 .. v6}, Lcom/zuimeia/ui/lockpattern/LockNumberIndicator;->drawCircle(Landroid/graphics/Canvas;IIZII)V

    .line 308
    add-int/lit8 v6, v6, 0x1

    goto :goto_18

    .line 306
    .end local v8    # "leftX":F
    :cond_2e
    add-int/lit8 v5, v5, 0x1

    goto :goto_f

    .line 313
    .end local v6    # "j":I
    .end local v13    # "topY":F
    :cond_31
    return-void
.end method

.method protected onMeasure(II)V
    .registers 9
    .param p1, "widthMeasureSpec"    # I
    .param p2, "heightMeasureSpec"    # I

    .prologue
    .line 194
    iget v2, p0, Lcom/zuimeia/ui/lockpattern/LockNumberIndicator;->mMaxRadius:I

    mul-int/lit8 v2, v2, 0x8

    iget v3, p0, Lcom/zuimeia/ui/lockpattern/LockNumberIndicator;->mIndicatorPadding:I

    mul-int/lit8 v3, v3, 0x3

    add-int v1, v2, v3

    .line 195
    .local v1, "viewWidth":I
    iget v2, p0, Lcom/zuimeia/ui/lockpattern/LockNumberIndicator;->mMaxRadius:I

    mul-int/lit8 v2, v2, 0x2

    int-to-double v2, v2

    const-wide/high16 v4, 0x3ff8000000000000L

    mul-double/2addr v2, v4

    double-to-int v0, v2

    .line 196
    .local v0, "viewHeight":I
    invoke-virtual {p0, v1, v0}, Lcom/zuimeia/ui/lockpattern/LockNumberIndicator;->setMeasuredDimension(II)V

    .line 197
    return-void
.end method

.method protected onSizeChanged(IIII)V
    .registers 9
    .param p1, "w"    # I
    .param p2, "h"    # I
    .param p3, "oldw"    # I
    .param p4, "oldh"    # I

    .prologue
    .line 185
    invoke-virtual {p0}, Lcom/zuimeia/ui/lockpattern/LockNumberIndicator;->getPaddingLeft()I

    move-result v2

    sub-int v2, p1, v2

    invoke-virtual {p0}, Lcom/zuimeia/ui/lockpattern/LockNumberIndicator;->getPaddingRight()I

    move-result v3

    sub-int v1, v2, v3

    .line 186
    .local v1, "width":I
    int-to-float v2, v1

    const/high16 v3, 0x40800000

    div-float/2addr v2, v3

    iput v2, p0, Lcom/zuimeia/ui/lockpattern/LockNumberIndicator;->mSquareWidth:F

    .line 188
    invoke-virtual {p0}, Lcom/zuimeia/ui/lockpattern/LockNumberIndicator;->getPaddingTop()I

    move-result v2

    sub-int v2, p2, v2

    invoke-virtual {p0}, Lcom/zuimeia/ui/lockpattern/LockNumberIndicator;->getPaddingBottom()I

    move-result v3

    sub-int v0, v2, v3

    .line 189
    .local v0, "height":I
    int-to-float v2, v0

    iput v2, p0, Lcom/zuimeia/ui/lockpattern/LockNumberIndicator;->mSquareHeight:F

    .line 190
    return-void
.end method

.method public removeIndicator()V
    .registers 5

    .prologue
    .line 155
    iget-object v1, p0, Lcom/zuimeia/ui/lockpattern/LockNumberIndicator;->mIndicators:Ljava/util/ArrayList;

    invoke-virtual {v1}, Ljava/util/ArrayList;->size()I

    move-result v1

    if-lez v1, :cond_33

    .line 156
    iget-object v1, p0, Lcom/zuimeia/ui/lockpattern/LockNumberIndicator;->mIndicators:Ljava/util/ArrayList;

    iget-object v2, p0, Lcom/zuimeia/ui/lockpattern/LockNumberIndicator;->mIndicators:Ljava/util/ArrayList;

    invoke-virtual {v2}, Ljava/util/ArrayList;->size()I

    move-result v2

    add-int/lit8 v2, v2, -0x1

    invoke-virtual {v1, v2}, Ljava/util/ArrayList;->remove(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/zuimeia/ui/lockpattern/LockNumberIndicator$Indicator;

    .line 157
    .local v0, "indicator":Lcom/zuimeia/ui/lockpattern/LockNumberIndicator$Indicator;
    iget-object v1, p0, Lcom/zuimeia/ui/lockpattern/LockNumberIndicator;->mPatternDrawLookup:[[Z

    invoke-virtual {v0}, Lcom/zuimeia/ui/lockpattern/LockNumberIndicator$Indicator;->getRow()I

    move-result v2

    aget-object v1, v1, v2

    invoke-virtual {v0}, Lcom/zuimeia/ui/lockpattern/LockNumberIndicator$Indicator;->getColumn()I

    move-result v2

    const/4 v3, 0x0

    aput-boolean v3, v1, v2

    .line 158
    iget v1, p0, Lcom/zuimeia/ui/lockpattern/LockNumberIndicator;->mDefaultColor:I

    iput v1, v0, Lcom/zuimeia/ui/lockpattern/LockNumberIndicator$Indicator;->color:I

    .line 159
    iget v1, p0, Lcom/zuimeia/ui/lockpattern/LockNumberIndicator;->mMinRadius:I

    int-to-float v1, v1

    iput v1, v0, Lcom/zuimeia/ui/lockpattern/LockNumberIndicator$Indicator;->radius:F

    .line 160
    invoke-virtual {p0}, Lcom/zuimeia/ui/lockpattern/LockNumberIndicator;->invalidate()V

    .line 162
    .end local v0    # "indicator":Lcom/zuimeia/ui/lockpattern/LockNumberIndicator$Indicator;
    :cond_33
    return-void
.end method

.method public setDefaultColor(I)V
    .registers 2
    .param p1, "defaultColor"    # I

    .prologue
    .line 110
    iput p1, p0, Lcom/zuimeia/ui/lockpattern/LockNumberIndicator;->mDefaultColor:I

    .line 111
    return-void
.end method
